<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://com.yhm.pagination/pager" prefix="p"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>分页测试</title>
	<link href="${pageContext.request.contextPath}/css/page.css" rel="stylesheet" type="text/css" />
</head>
<body>
<pre>
	<b>不使用表单传参,自己拼接地址作为参数</b>
	user.name,user.code,user.sex,pageUtil.currentPage,pageUtil.pageSize
</pre>  
		<p>
			姓名
			<a href="/findAll31?user.name=-1&user.code=${user.code}&user.sex=${user.sex}&pageUtil.pageSize=4&pageUtil.currentPage=1">全部</a>
			<a href="/findAll31?user.name=张&user.code=${user.code}&user.sex=${user.sex}&pageUtil.pageSize=4&pageUtil.currentPage=1">张姓</a>
			<a href="/findAll31?user.name=李&user.code=${user.code}&user.sex=${user.sex}&pageUtil.pageSize=4&pageUtil.currentPage=1">李姓</a>
			<a href="/findAll31?user.name=王&user.code=${user.code}&user.sex=${user.sex}&pageUtil.pageSize=4&pageUtil.currentPage=1">王姓</a>
		</p>
		<p>
			性别
			<a href="/findAll31?user.name=${user.name}&user.code=${user.code}&user.sex=-1&pageUtil.pageSize=4&pageUtil.currentPage=1">全部</a>
			<a href="/findAll31?user.name=${user.name}&user.code=${user.code}&user.sex=1&pageUtil.pageSize=4&pageUtil.currentPage=1">男</a>
			<a href="/findAll31?user.name=${user.name}&user.code=${user.code}&user.sex=0&pageUtil.pageSize=4&pageUtil.currentPage=1">女</a>
		</p>
		<table>
			<tr selectTr="xxxxxx"><th>名字</th><th>年龄</th></tr>			
			<c:forEach items="${users}" var="u">
				<tr>
					<td>${u.name}</td>
					<td>${u.sexName}</td>
				</tr>
			</c:forEach>
		</table>
		<div class="badoo" style="text-align: left">
		   <p:pager name="pageUtil" currentPage="${pageUtil.currentPage}" pageSize="${pageUtil.pageSize}" totalCount="${pageUtil.totalCount}"  
		     pagerUrl="/findAll31?user.name=${user.name}&user.code=${user.code}&user.sex=${user.sex}&pageUtil.pageSize=${pageUtil.pageSize}&pageUtil.currentPage=%s"/>
		</div>
</body>
</html>